//-----------------------------------------------------------------------

// <copyright file="InputControlEventArgs.cs" company="Jamie Knight">

// Copyright (c) Jamie Knight. All rights reserved.

// </copyright>

//-----------------------------------------------------------------------

using DevKnightlie.WPF.AutoForm.FieldDefinitions;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Controls;

namespace DevKnightlie.WPF.AutoForm
{
    /// <summary>
    /// Arguments class passed to AutoFormPanel WillAddFormControl and WillAddFieldLabelEvent events
    /// </summary>
    public class InputControlEventArgs : EventArgs
    {
        public Control InputControl { get; set; }

        public BaseFieldDefinition FieldDefinition { get; set; }

        public InputControlEventArgs(Control inputControl, BaseFieldDefinition fieldDefinition)
        {
            InputControl = inputControl;
            FieldDefinition = fieldDefinition;
        }
    }
}
